//
//  DanLiPlayer.h
//  ExampleApp
//
//  Created by dllo on 15/8/10.
//  Copyright (c) 2015年 Thong Nguyen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ReDetailModel.h"
#import "SingerNameModel.h"

#import "DEFINE.h"

@protocol OpenTheView <NSObject>

- (void)changeView:(ReDetailModel *)reDetailModel dataArr:(NSMutableArray *)dataArr;

- (void)playButton:(UIButton *)sender;

- (void)nextMusicButton:(NSMutableArray *)reDetailModelArr index:(NSInteger)index;

- (void)mainViewAppear:(NSMutableArray *)ModelArr index:(NSInteger)index playWays:(NSInteger)playWays;

@end

@interface DanLiPlayer : UIView

@property (nonatomic, assign) id <OpenTheView> delegate;
@property (nonatomic, retain) ReDetailModel *reDetailModel;
@property (nonatomic, retain) UIButton *Play;
@property (nonatomic, retain) UIButton *PlayNext;
@property (nonatomic, retain) UIButton *ListButton;
@property (nonatomic, retain) UILabel *song_name;
@property (nonatomic, retain) UILabel *song_singer;
@property (nonatomic, retain) UIImageView *pic_url;
@property (nonatomic, retain) UILabel *durition;
@property (nonatomic, retain) UIButton *mainPlayView;
@property (nonatomic, retain) NSMutableArray *dataArr;
@property (nonatomic, retain) NSIndexPath *indexpath;
@property (nonatomic, assign) NSInteger index;

@property (nonatomic, assign) NSInteger playWays; // 记录播放模式




+ (DanLiPlayer *)shareHandleDanLiPlayer:(CGRect)Frame;



@end
